package com.ruoyi.project.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 自动编码规则对象 sys_code_rules
 * 
 * @author woniu
 * @date 2020-07-01
 */
public class SysCodeRules extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /**
     * 前缀
     */
    @Excel(name = "前缀")
    private String prefix;

    /**
     * 暂时无用
     */
    private Integer qyrq;

    /**
     * 日期格式
     */
    private String rqgs;

    /**
     * 当前序号
     */
    private Integer dqxh;

    /**
     * 序号之前填充几位
     */
    private Integer xhLength;

    /**
     * 更新频率
     */
    private Integer sfmrgx;

    /**
     * 公司ID
     */
    private Long companyId;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setPrefix(String prefix) 
    {
        this.prefix = prefix;
    }

    public String getPrefix() 
    {
        return prefix;
    }
    public void setQyrq(Integer qyrq) 
    {
        this.qyrq = qyrq;
    }

    public Integer getQyrq() {
        return qyrq;
    }

    public void setRqgs(String rqgs) {
        this.rqgs = rqgs;
    }

    public String getRqgs() {
        return rqgs;
    }

    public void setDqxh(Integer dqxh) {
        this.dqxh = dqxh;
    }

    public Integer getDqxh() {
        return dqxh;
    }

    public void setXhLength(Integer xhLength) {
        this.xhLength = xhLength;
    }

    public Integer getXhLength() {
        return xhLength;
    }

    public void setSfmrgx(Integer sfmrgx) {
        this.sfmrgx = sfmrgx;
    }

    public Integer getSfmrgx() {
        return sfmrgx;
    }

    public void setCompanyId(Long companyId)
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("prefix", getPrefix())
            .append("qyrq", getQyrq())
            .append("rqgs", getRqgs())
            .append("dqxh", getDqxh())
            .append("xhLength", getXhLength())
            .append("sfmrgx", getSfmrgx())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("companyId", getCompanyId())
            .toString();
    }
}
